/****************************************************************************
 *Author: Achilles Zhang												   *
 *Date: 2012.11.28														   *
 *File Name: FullScreen.cpp												   *
 *Description: The file is used to realize the function of full screen.	   *
 ***************************************************************************/
#include "FullScreen.h"
#include "VtRender.h"

FullScreen::FullScreen(){

}

FullScreen::~FullScreen(){

}


void FullScreen::do_fullScrren(){
	View3DInventor* view = qobject_cast<View3DInventor*>(getMainWindow()->activeWindow());
	if(!view) return;
//	view->getVtRender()->setWindowFlags(Qt::Window);
//	view->getVtRender()->showFullScreen();
	view->setCurrentViewMode(MDIView::FullScreen);
}

void FullScreen::do_esc(){
	View3DInventor* view = qobject_cast<View3DInventor*>(getMainWindow()->activeWindow());
	if(!view) return;
	view->setWindowFlags(Qt::SubWindow);
	view->showMaximized();
}